package org.tang.springcloudvv.sql;

import java.util.Date;

public class SQL {
    private String sqlId;//mybatis的sqlid
    private long time;//该sql执行耗时
    private String sql;//sql业务脚本
    private Date createTime;

    public SQL(String sqlId)
    {
        this.sqlId = sqlId;
        createTime = new Date();
    }
    public SQL(long time,String sql)
    {
        this.time = time;
        this.sql = sql;
        createTime = new Date();
    }

    public String getSqlId() {
        return sqlId;
    }

    public void setSqlId(String sqlId) {
        this.sqlId = sqlId;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
